package com.sys.basics.dao;

import com.sys.basics.entity.SysResource;
import org.apache.ibatis.annotations.Mapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author: ares
 * @date: 2021-10-08
 * @description: 系统资源表 Mapper 接口
 */
@Mapper
public interface SysResourceDao extends BaseMapper<SysResource> {

    SysResource getTreeById(Long id);

    List<SysResource> getChildrenByParentId(Long parentId);

    List<SysResource> getChildrenTreeByParentId(Long parentId);

    List<SysResource> getParentTree(Long parentId);

    List<SysResource> getListByRoleId(Long roleId);

    List<SysResource> getTreeByOrgId(Long orgId);

}
